//
//  WPPHeader.h
//  BaseProject
//
//  Created by mac on 2020/11/20.
//  Copyright © 2020 王洋. All rights reserved.
//

#ifndef WPPHeader_h
#define WPPHeader_h

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#pragma mark - 对象
//AppDelegate对象
#define sharedAppDelegate  ((AppDelegate *)[[UIApplication sharedApplication] delegate])
//NSUserDefaults对象
#define sharedUserDefault  ((NSUserDefaults *)[NSUserDefaults standardUserDefaults])
//keyWindow对象
#define sharedKeyWindow ((UIWindow *)[[UIApplication sharedApplication]delegate].window)

#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height
#define kTopHeight (kStatusBarHeight + kNavBarHeight)
#define kLineHeight (1 / [UIScreen mainScreen].scale)

#pragma mark - Font
#define kFontRegular(fSize) [UIFont systemFontOfSize:(fSize) weight:UIFontWeightRegular]
#define kFontBold(fSize) [UIFont systemFontOfSize:(fSize) weight:UIFontWeightBold]
#define kFontMedium(fSize) [UIFont systemFontOfSize:(fSize) weight:UIFontWeightMedium]

#define kFontRegular12 [UIFont systemFontOfSize:(12*ADAPTER_WIDTH) weight:UIFontWeightRegular]
#define kFontRegular13 [UIFont systemFontOfSize:(13*ADAPTER_WIDTH) weight:UIFontWeightRegular]
#define kFontRegular14 [UIFont systemFontOfSize:(14*ADAPTER_WIDTH) weight:UIFontWeightRegular]
#define kFontRegular15 [UIFont systemFontOfSize:(15*ADAPTER_WIDTH) weight:UIFontWeightRegular]
#define kFontRegular16 [UIFont systemFontOfSize:(16*ADAPTER_WIDTH) weight:UIFontWeightRegular]
#define kFontRegular17 [UIFont systemFontOfSize:(17*ADAPTER_WIDTH) weight:UIFontWeightRegular]
#define kFontRegular18 [UIFont systemFontOfSize:(18*ADAPTER_WIDTH) weight:UIFontWeightRegular]

#define kFontBold12 [UIFont systemFontOfSize:(12*ADAPTER_WIDTH) weight:UIFontWeightBold]
#define kFontBold13 [UIFont systemFontOfSize:(13*ADAPTER_WIDTH) weight:UIFontWeightBold]
#define kFontBold14 [UIFont systemFontOfSize:(14*ADAPTER_WIDTH) weight:UIFontWeightBold]
#define kFontBold15 [UIFont systemFontOfSize:(15*ADAPTER_WIDTH) weight:UIFontWeightBold]
#define kFontBold16 [UIFont systemFontOfSize:(16*ADAPTER_WIDTH) weight:UIFontWeightBold]
#define kFontBold17 [UIFont systemFontOfSize:(17*ADAPTER_WIDTH) weight:UIFontWeightBold]
#define kFontBold18 [UIFont systemFontOfSize:(18*ADAPTER_WIDTH) weight:UIFontWeightBold]

#define rgba(r,g,b,a) [UIColor colorWithRed:r / 255.0 green:g / 255.0 blue:b / 255.0 alpha:a]
#define kRandomColor  [UIColor colorWithRed:arc4random()%226/255.0 green:arc4random()%226/255.0  blue:arc4random()%226/255.0  alpha:1.0]
#define kColor51 rgba(51, 51, 51, 1)
#define kColor102 rgba(102, 102, 102, 1)
#define kColor153 rgba(153, 153, 153, 1)
#define kColor184 rgba(184, 184, 184, 1)
#define kColor204 rgba(204, 204, 204, 1)
#define WhiteColor              [UIColor whiteColor]
#define ClearColor              [UIColor clearColor]
#define RedColor              [UIColor redColor]
#define kLineColor rgba(226, 226, 226, 1)
#define kBGDarkColor rgba(242, 243, 246, 1)
#define kGreenColor rgba(36, 199, 126, 1)
#define kOrangeColor rgba(255, 128, 26, 1)
#define kRedColor rgba(255, 36, 66, 1)
#define kPlaceholderColor rgba(184, 184, 184, 1)
#define kTextColor rgba(51, 51, 51, 1)

//弱引用
#define WK(weakSelf) \
__block __weak __typeof(&*self)weakSelf = self;\

#import "UIImage+Category.h"
#import "NSString+Category_WPP.h"
#import "UIColor+ColorGradient.h"
#import "NSDate+Category.h"
#import "BaseAdjustButton.h"
#import "BaseResponse.h"
#import "BaseVC.h"
#import "BaseIconModel.h"
#import "BaseIconView.h"
#import "TESTVC.h"
#import "Factory.h"

#endif /* WPPHeader_h */
